﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Entity;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TCM.DbContextt;
using TCM.Models;

namespace TCM.Forms
{
    public partial class CasesManager : Form
    {
        
        

        public CasesManager()
        {
            InitializeComponent();

            var db = new BaseContext();
            List<Category> categories = db.Categories.ToList();
            comboBox1.DataSource = categories;
            comboBox1.DisplayMember = "Name";
            comboBox1.ValueMember = "CategoryId";

        }
    }
}
